import request from '@/utils/request'

export function getappuser(params) {
    return request({
        url: '/users',
        method: 'get',
        params
    })
}

export function postappuser(data) {
    return request({
        url: '/users',
        method: 'post',
        data
    })
}

export function delappuser(id) {
    return request({
        url: `/users/${id}`,
        method: 'delete'
    })
}

export function dataappuser(data) {
    return request({
        url: `/users/${data.id}`,
        method: 'put',
        data
    })
}